libURLSetLogField
Type
command
Summary
Specifies a field for logging information about uploads and downloads.
Syntax
libURLSetLogField <longFieldDescriptor>
libURLSetLogField "none"
Description
Use the libURLSetLogField command to debug file transfers.
The libURLSetLogField command does not accept direct field references. For example, the following statement causes an error message:
libURLSetLogField field \"Log\" -- CAN\'T USE THIS FORM
Instead, use a form that evaluates to a field reference, like this:
libURLSetLogField the name of field \"Log\" -- use this form instead
libURLSetLogField (\"field\" && quote & \"Log\" & quote) -- or this
During ftp and http transfers, LiveCode logs the data sent from the server. If a log field has been set, this data is placed after the log field's contents.
To stop logging, use the following statement:
libURLSetLogField \"none\"
The libURLSetLogField command is part of the Internet library. To ensure that the command works in a standalone application, you must include this custom library when you create your standalone. In the Inclusions pane of the Standalone Application Settings window, make sure the "Internet" script library is selected.
Parameters
Name | Type | Description |
---|---|---|
longFieldDescriptor | Any expression that evaluates to a field reference. |
Examples
libURLSetLogField "field 1"
libURLSetLogField(the cLogField of me)
Related
function: libURLErrorData
glossary: application, standalone application, debug, object reference, command, main stack, group, Standalone Application Settings, server, HTTP, message, statement, handler, LiveCode custom library
keyword: long
control structure: function
library: Internet library, library
message: startup, openBackground, preOpenStack, openStack
object: field
Compatibility and Support
Introduced
LiveCode 1.1.1
OS
mac
windows
linux
web
Platforms
desktop
server